//
//  WBHomeViewController.swift
//  IOS_Mock_WB
//
//  Created by edy on 2024/9/19.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    @objc private func showFriends(){
        print("showFriends")
        let vc = WBFriendsViewController()
        navigationController?.pushViewController(vc, animated:false)
    }
    

}

extension WBHomeViewController{
    override func setupUI() {
        super.setupUI()
        
        // 设置导航栏按钮
        // navigationItem.leftBarButtonItem=UIBarButtonItem(title: "好友", style: .plain, target: self, action: #selector(showFriends))
        
        // 自定义高亮显示
        navItem.leftBarButtonItem = UIBarButtonItem(title: "好友", target: self, action: #selector(showFriends))

            
    }
}

